package Day08;

public class DemoStringBuilder1 {
    public static void main(String[] args) {
        StringBuilder s=new StringBuilder();
        System.out.println("s:"+s);
        System.out.println("s.length:"+s.length());
        StringBuilder s1=new StringBuilder("hello");
        System.out.println("s1:"+s1);
        System.out.println("s1.length:"+s1.length());
        StringBuilder a=new StringBuilder();
        a.append("hello").append(123).append("java").append("黑马");
        System.out.println("a:"+a);
        a.reverse();
        System.out.println("a:"+a);
    }
}
